package com.example.fw;

import org.openqa.selenium.By;

public class NavigationHelper extends HelperWithDriverBase {
	
	public NavigationHelper (ApplicationManager manager) {
		super(manager);
	}
	public void gotoABGroupsPage() {
		//if ((isElementPresent(By.id("maintable"))) && (isElementPresent(By.name("selected[]")))) {
		click(By.linkText("groups"));
	}

	//should add server availability verification here
	public void openABHomepage() {
		 if (isElementPresent(By.id("maintable"))) {
			  return;
		 }
		openUrl("http://localhost/addressbookv4.1.4/");
	}
	
	void goToABHomepage() {
	    if (isElementPresent(By.id("maintable"))) {
		  return;
	    } 
		click(By.linkText("home"));
	}
}